import service from '@/utils/request'

// @Tags UserBindManage
// @Summary 创建用户绑定健管师
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBindManage true "创建用户绑定健管师"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /Bind/createUserBindManage [post]
export const createUserBindManage = (data) => {
  return service({
    url: '/Bind/createUserBindManage',
    method: 'post',
    data
  })
}

// @Tags UserBindManage
// @Summary 删除用户绑定健管师
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBindManage true "删除用户绑定健管师"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /Bind/deleteUserBindManage [delete]
export const deleteUserBindManage = (params) => {
  return service({
    url: '/Bind/deleteUserBindManage',
    method: 'delete',
    params
  })
}

// @Tags UserBindManage
// @Summary 批量删除用户绑定健管师
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除用户绑定健管师"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /Bind/deleteUserBindManage [delete]
export const deleteUserBindManageByIds = (params) => {
  return service({
    url: '/Bind/deleteUserBindManageByIds',
    method: 'delete',
    params
  })
}

// @Tags UserBindManage
// @Summary 更新用户绑定健管师
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBindManage true "更新用户绑定健管师"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /Bind/updateUserBindManage [put]
export const updateUserBindManage = (data) => {
  return service({
    url: '/Bind/updateUserBindManage',
    method: 'put',
    data
  })
}

// @Tags UserBindManage
// @Summary 用id查询用户绑定健管师
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.UserBindManage true "用id查询用户绑定健管师"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /Bind/findUserBindManage [get]
export const findUserBindManage = (params) => {
  return service({
    url: '/Bind/findUserBindManage',
    method: 'get',
    params
  })
}

// @Tags UserBindManage
// @Summary 分页获取用户绑定健管师列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取用户绑定健管师列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /Bind/getUserBindManageList [get]
export const getUserBindManageList = (params) => {
  return service({
    url: '/Bind/getUserBindManageList',
    method: 'get',
    params
  })
}
